package com.atde._04_structural_design_patterns.facade;


/**
 * @BelongsProject: hsp_java_design_mode
 * @BelongsPackage: com.atde._04_structural_design_patterns.facade
 * @Author: Del
 * @CreateTime: 2025-06-23  09:26
 * @Description: 外观模式 --- 影院灯光
 * @Version: 1.0
 */
public class TheaterLight {
    private TheaterLight() {};

    private static class Holder {
        private static final TheaterLight instance = new TheaterLight();
    }

    public static TheaterLight getInstance() {
        return Holder.instance;
    }

    public void on() {
        System.out.println("剧院灯光打开......");
    }

    public void off() {
        System.out.println("剧院灯光关闭......");
    }

    public void dim() {
        System.out.println("剧院灯光调暗......");
    }

    public void bright() {
        System.out.println("剧院灯光调亮......");
    }
}
